home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / bbs_door / vfy_39.zip / 4-TRIBBS.ZIP / TRISEC.DOC < prev    next >
Text File  |  1995-12-26  |  13KB  |  321 lines

  1.         **************************************************************
  2.         *                                                            *
  3.         *                      TRISEC.EXE v10.4                      *
  4.         *                                                            *
  5.         *       TRIBBS User Security Level Adjustment Program        *
  6.         *                                                            *
  7.         *                   Copyright (c) 1993/95                    *
  8.         *                Sagerquist Micro Engineering                *
  9.         *                                                            *
  10.         *                   1414 W. Kerrick Street                   *
  11.         *                    Lancaster, Ca. 93534                    *
  12.         *                    Data  (805) 723-6908                    *
  13.         *                                                            *
  14.         **************************************************************
  15.  
  16. DESCRIPTION
  17. -----------
  18.     TRISEC.EXE adjusts a TRIBBS caller's security level in the TRIBBS
  19.     user database file USERS.DAT.  This action is useful when invoking
  20.     BBS Doors such as a Call Back Verification, a Questionnaire or
  21.     Opinion Poll, etc., where the caller is to be rewarded with a
  22.     security level adjustment upon successful completion.  The caller's
  23.     remaining time may also be altered.
  24.  
  25. SYNTAX
  26. ------
  27.     TRISEC [/S:(New Security Level)]
  28.            [/D:(Node Directory (location of SYSDAT2.DAT - optional)]
  29.            [/T=:[(New Remaining Time in Minutes)]   <Registered only>
  30.            [/T+:[(Minutes to Add to Remaining Time] <Registered only>
  31.  
  32.     Note: Either Security, Remaining Time or both may be adjusted.
  33.           The Security value is an optional value.
  34.  
  35.     Note: Only one /T switch is allowed.
  36.  
  37.     Note: /D:... switch is optional.  It will override the default 
  38.           value: C:\TRIBBS.  If your TriBBS system is set up on a 
  39.           different drive or directory, use the command line switch 
  40.           to override the default values.
  41.  
  42. EXAMPLES
  43. --------
  44.     TRISEC /S:100 /T+:30
  45.     TRISEC /T+:60
  46.     TRISEC /D:F:\TRIBBS /S:100
  47.     TRISEC /D:D:\TRIBBS /S:100 /T+:30
  48.     TRISEC ?
  49.  
  50. SAMPLE TRAP DOOR BATCH FILE
  51. ---------------------------
  52.     Note:   TRIBBS places the callers logged actions into the file 
  53.         CALLERS.LOG in the NWORK directory.  When the caller hangs
  54.         up, all the information is written (appended) to the file
  55.         CALLERS.LOG in the MWORK directory.  The CALLERS.LOG in
  56.         the MWORK directory is the permanent log.  If VERIFY!.EXE
  57.         is going to log its action in CALLERS.LOG, be sure to
  58.         specify the CALLERS.LOG file in the NWORK directory with
  59.         the /L: switch.
  60.  
  61.     Note:    The DOORS.MNU entry would look like this:
  62.         T,Call Back Verification,VERIFY!,10
  63.  
  64.     @ECHO OFF
  65.     ECHO ******* Entering VERIFY! *******>> C:\TRIBBS\NWORK\CALLERS.LOG
  66.     C:
  67.     CD C:\TRIBBS\VERIFY!
  68.     VERIFY! /B:TRIBBS /D:C:\TRIBBS /L:C:\TRIBBS\NWORK\CALLERS.LOG
  69.     rem  ERRORLEVEL 0 and 1 means caller is verified.  
  70.     rem  ERRORLEVEL 0 == local call
  71.     rem  ERRORLEVEL 1 == long distance
  72.     IF ERRORLEVEL 0 IF NOT ERRORLEVEL 2 goto ADJUST
  73.     goto END
  74.     :ADJUST
  75.     rem  Adjust caller's security level to 50
  76.     C:\TRIBBS\SME_UTLS\TRISEC /S:50 /T=:90
  77.     :END
  78.     CD C:\TRIBBS
  79.     BOARD
  80.  
  81. TECHNICAL
  82. ---------
  83.     TRISEC.EXE was designed to compliment VERIFY!.EXE, a BBS Call Back
  84.     Verify program, and both were originally intended for use in a DOOR.
  85.     When a TriBBS DOOR launches, TriBBS creates DOORS.TMP.  It contains
  86.     the caller's information.  If values are changed in this file, the
  87.     data in TriBBS's databases are automatically updated.  TRISEC.EXE
  88.     will change the data in DOORS.TMP to accomplish its goals.
  89.  
  90.     TRISEC.EXE begins by reading the file SYSDAT2.DAT for the node in 
  91.     operation.  From there, all other system files can be found.  Then
  92.     the file DOORS.TMP is read, where the User Record Number is 
  93.     retrieved.  The caller's record in the file USERS.DAT is updated 
  94.     with the new security level.  If the security level update is 
  95.     successful, the file DOORS.TMP is updated with the remaining time 
  96.     value (if defined).  DOOR.SYS is then deleted, since values there
  97.     will override changes to USERS.DAT.
  98.  
  99.     SHARE.EXE:
  100.  
  101.     All files are opened in SHARE mode, allowing other applications
  102.     to access the files.  The current user's record in USERS.DAT is 
  103.     "locked" prior to changing any values which ensures other 
  104.     applications cannot crash the system by trying to alter the same 
  105.     area of the file.  SHARE.EXE must be loaded for TRISEC to operate 
  106.     on a multitasking system (multiple nodes).  Without SHARE.EXE on 
  107.     a multinode system, it is highly likely that TRISEC will fail when 
  108.     accessing USERS.DAT.  TRISEC will operate without SHARE.EXE on a 
  109.     single node system.  
  110.  
  111.     If DOOR.SYS exists, TRISEC will delete it.  Otherwise, the values
  112.     in DOOR.SYS will override the changes made to DOORS.TMP and 
  113.     USERS.DAT.
  114.  
  115.     On exit of TRISEC, ERRORLEVELs are returned.  Your batch file can
  116.     check the ERRORLEVEL and determine what has happened.  The following
  117.     is a list of TRISEC's ERRORLEVELs and their meaning:
  118.  
  119.     ERRORLEVEL   0        Normal exit, adjustment successful.
  120.     ERRORLEVEL   1        Error exit, either a file cannot be found,
  121.                 the adjustment cannot be made, the user's
  122.                 name cannot be found, etc.  The actual
  123.                 reason for the error is written to the
  124.                 screen.
  125.  
  126.     Review your DOS manual for more information on ERRORLEVELs.
  127.  
  128. REGISTRATION
  129. ------------
  130.     This program is part of "The SME TriBBS Utilities Package"
  131.     which are released as Shareware.  You are granted a 30 day limited
  132.     license for evaluation purposes.  If you decide to continue its
  133.     use, registration is required.
  134.  
  135.     The time adjustment function (from the /T+: and /T=: command line
  136.     switches) is disabled until registration. 
  137.  
  138.     Registration is for the entire package.  Every program in the
  139.     package will operate on the same registration number.  This number
  140.     is generated from the BBS's sysop name.  The name entered on the 
  141.     registration form must be the BBS's sysop name.
  142.  
  143.     The registration fee is $20.00.  California residents please add 
  144.     8.25% sales tax of $1.65, total: $21.65
  145.  
  146.     If the SME TriBBS Utility Package is purchased with or after
  147.     VERIFY!.EXE BBS Call Back Verifier, registration is only $10.00.  
  148.     California residents please add 8.25% sales tax of $0.83.
  149.  
  150.     Please print and fill out the file REGISTER.FRM, and send a check 
  151.     or money order to:
  152.  
  153.     Sagerquist Micro Engineering
  154.     1414 W. Kerrick St.
  155.     Lancaster, CA 93534
  156.  
  157.     If you have any suggestions for improvement, or requests for
  158.     other utilities to add to this package, please contact
  159.     Carl Sagerquist through The SME Support BBS, or via mail.
  160.  
  161.     Thank you for your support!
  162.  
  163. PROGRAMMING SERVICES
  164. ====================
  165.     TRISEC.EXE is a custom program, and performs exactly as requested.
  166.  
  167.     Programming services are provided by Sagerquist Micro Engineering
  168.     by request.  The points of contact are:
  169.  
  170.     The SME Support BBS ---------->    (805) 723-6908 28800 Baud
  171.     Internet E-Mail -------------->    zs@qnet.com
  172.     Internet World Wide Web Page-->    http://www.av.qnet.com/~zs/
  173.  
  174.     Post Office "Snail Mail":
  175.  
  176.     Sagerquist Micro Engineering
  177.     1414 W. Kerrick St.
  178.     Lancaster, CA 93534
  179.  
  180.     If you have an idea for a program of any kind, please call!
  181.  
  182. DISCLAIMER
  183. ----------
  184.     This program is distributed as is.  No warranty, either expressed or
  185.     implied is offered and the programmer is not responsible for any
  186.     damages or expenses that may occur through the use of this program.
  187.     The user shall determine its suitability.  Extensive testing has been
  188.     performed and every effort has been made to ensure satisfactory 
  189.     performance prior to release.  Please communicate any difficulties 
  190.     with the programmer through one of the contacts listed above.  Any 
  191.     problems received will be treated as a top priority.
  192.  
  193. CREDITS
  194. -------
  195.     Thanks to James Mann of Littlerock, CA for requesting this program,
  196.     and testing it online.
  197.  
  198.     Thanks to Robert Massman of Dallas TX for his assistance and
  199.     testing of this program on his TRIBBS system.
  200.  
  201.     Thanks to Rick Bretz of Columbus, OH for finding the error in
  202.     version 1.2.  The caller's alias was part of the check, and 
  203.     apparently the caller's alias is not always included in the file
  204.     TRIBBS.SYS.  Now, the caller's name and password is compared rather
  205.     than the caller's name and alias.
  206.  
  207.     Thanks to John Knopf of Collierville, TN for his efforts with
  208.     TRIBBS v5.01 and TRISEC.EXE.
  209.  
  210.     Thanks to Doug Torneden of Irving, TX for suggesting the additional
  211.     time function of this program, and for testing it online.
  212.  
  213.     Thanks to Rick Bretz of Columbus, OH again, for his thorough work, 
  214.     testing and communication in his setup of VERIFY!.EXE with TRISEC.EXE.  
  215.     The work helped me understand the known difficulty mentioned above 
  216.     much more thorough.  Setup suggestion is more reliable.
  217.  
  218.     Thanks to Mark Goodwin, author of TriBBS for releasing the source code
  219.     to the TriBBS database files, and for his assistance with all my
  220.     pestering questions and suggestions.
  221.  
  222.     Extreme thanks to Dan Harvey of New Market, TN, (BBS (614) 932-1490)
  223.     for his diligence in testing TRISEC.EXE on his multinode BBS.  
  224.     Without his fine, exacting and detailed error reporting, TRISEC would
  225.     not have been fully operational on multinode BBSs in multitasking
  226.     environments.
  227.  
  228.     TRIBBS is copyrighted software by Mark Goodwin, 366 14th St.,
  229.     Bangor, ME 04401  BBS (207) 941-0805.
  230.  
  231. HISTORY
  232. -------
  233.     10/25/95 v10.4    Command line switches reduced and TriBBS system 
  234.             files located through SYSDAT2.DAT.
  235.  
  236.             /U: and /TMP: command line switches deleted.
  237.  
  238.             /D: switch now points to the directory location
  239.             of SYSDAT2.DAT, and TRISEC.EXE locates all other
  240.             necessary files through the directory structure
  241.             created on initial setup, or by TRIMAN.EXE when
  242.             setting up a new node.
  243.  
  244.     10/21/95 v10.3    Altered file access:  Shared opening of files now
  245.             allows other applications to access all files
  246.             TRISEC accesses.  The current user record within
  247.             USERS.DAT is "locked" prior to writing any changes.
  248.             Also, if SHARE.EXE is not loaded, TRISEC will still 
  249.             attempt to make the changes.  This keeps TRISEC
  250.             compatible with non-multitasking systems where
  251.             SHARE.EXE is not loaded.
  252.  
  253.             Fixed problem when TRISEC was called for nodes 2 
  254.             and above, it would respond as not registered, 
  255.             disabling time adjustments.
  256.  
  257.     10/21/95 v10.2    TriSEC, (again) has been placed within The TriBBS 
  258.             Utility Package requiring registration.
  259.  
  260.     10/21/95 v10.1    Since the values in DOOR.SYS will override any
  261.             changes made to DOORS.TMP and USERS.DAT, TRISEC.EXE
  262.             now deletes DOOR.SYS if it exists.
  263.  
  264.             The Security value is now optional.  Time only may
  265.             now be adjusted.
  266.  
  267.     10/20/95 v10.0    Recoded for compatibility with TriBBS v10.0.
  268.  
  269.     06/01/95 v2.1 - Recoded for efficiency and appearance.
  270.  
  271.     04/21/95 v2.0 - Program operation overhauled.  DOORS.TMP is read
  272.             and adjusted.  User record locating is more direct.
  273.  
  274.             DOOR.SYS is no longer required to exist.  In fact,
  275.             if it exists, DOOR.SYS is deleted.
  276.  
  277.             Program screen output is changed, showing values
  278.             before and after the changes.
  279.  
  280.             Registration as part of the SME Utility Package 
  281.             removed.  This program is free, included with
  282.             the VERIFY!.EXE program.
  283.  
  284.              v1.9 - Test only, not released.
  285.  
  286.     01/16/95 v1.8 - Adjusted processing of the /T=: command line switch.
  287.  
  288.     10/22/94 v1.7 - TRISEC may now be called from a different directory.
  289.             The registration file SMETUTLS.REG now is found
  290.             within the TRISEC home directory.
  291.  
  292.               - Command line overhauled, time may be added or
  293.             altered.
  294.  
  295.     10/02/94 v1.6 - TRISEC.EXE added to the TriBBS Utilities Package.
  296.  
  297.     02/18/94 v1.5 - Added code to add time (minutes) to the caller's
  298.             remaining time for the current call.
  299.  
  300.     12/19/93 v1.4 - Added code to also alter DOOR.SYS to be compatible
  301.             with TRIBBS v5.01 and above.
  302.  
  303.     08/18/93 v1.3 - The checking of the caller's alias from TRIBBS.SYS
  304.             is removed.  Comparison check is now only the
  305.             caller's name and password from TRIBBS.SYS to
  306.             USERS.DAT.
  307.  
  308.     08/15/93 v1.2 - More thorough checking of the caller against the
  309.             database in USERS.DAT.
  310.  
  311.               - Command line suggestion no longer misleading.
  312.  
  313.     07/24/93 v1.1 - In version 1.0, if there were more than 256 callers
  314.             in the file USERS.DAT, TRISEC's writing position 
  315.             would start over at the beginning of the file for
  316.             record # 257.  This would overwrite someone else's
  317.             record, effectively placing two records for that
  318.             caller into the file.  FIXED!
  319.  
  320.     06/05/93 v1.0 - First release.
  321.